import {
  BwCustomComFrontTypeEnum,
  type BwCustomComStructModel,
  type BwCustomComDesignInfoModel,
} from '@bitwit/base-com-render'
import type { SysCustomComInfoOutupu } from '../utils/axios/model'

/** 当前自定义组件设计信息模型 */
export interface BwCustomComDesignStoreModel {
  /** 当前端类型 */
  curFrontType: BwCustomComFrontTypeEnum

  /** 当前设计信息 */
  curDesignInfo: Nullable<BwCustomComDesignInfoModel>

  /** 当前选中节点 */
  selectNodeEle: Nullable<BwCustomComStructModel>

  /** 当前隐藏节点集合 */
  curHideNodeIds: Array<string>

  /** 当前自定义组件列表 */
  curCustomComList: Array<SysCustomComInfoOutupu>

  /** 当前自定义组件渲染信息 */
  curCustomComRenderInfo: Record<string, BwCustomComDesignInfoModel>
}
